import ImageConstant from "@/constant/ImageConstant";
import { Image } from "@tarojs/components";

interface IProps {
  src: string;
  heigh?: number;
}

const TabbarIconComp = (props: IProps) => {
  const { src, heigh = 24 } = props;
  return (
    <Image
      src={`${ImageConstant.SERVER_ROOT}/common/${src}`}
      style={{ height: heigh + "px" }}
      mode="heightFix"
    />
  );
};
export default TabbarIconComp;
